<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link href="../before/css/common.css" rel="stylesheet" type="text/css" />
    <link href="../before/css/style.css" rel="stylesheet" type="text/css" />
    <script src="../after/js/jquery-2.1.1.min.js"></script>
    <title>个人中心</title>
    <style>
        html{
            overflow: hidden;
        }

    </style>
</head>
<script type="text/javascript">
    $(document).ready(function(){

        setInterval(showTime, 1000);
        function timer(obj,txt){
            obj.text(txt);
        }
        function showTime(){
            var today = new Date();
            var weekday=new Array(7)
            weekday[0]="星期日"
            weekday[1]="星期一"
            weekday[2]="星期二"
            weekday[3]="星期三"
            weekday[4]="星期四"
            weekday[5]="星期五"
            weekday[6]="星期六"
            var y=today.getFullYear()+"年";
            var month=today.getMonth()+1+"月";
            var td=today.getDate();
            var d=weekday[today.getDay()];
            var h=today.getHours();
            var m=today.getMinutes();
            var s=today.getSeconds();
            timer($("#y"),y+month);
            //timer($("#MH"),month);
            timer($("h1"),td);
            timer($("#D"),d);
            timer($("#H"),h);
            timer($("#M"),m);
            timer($("#S"),s);
        }
    })
</script>
<body>

<!--内页样式-->
<div  id="user" style="padding-left:40px;width:200px;">
    <!--用户中心布局样式-->
    <div class="left_style">
        <!--栏目名称-->
        <div class="title_username">个人中心</div>

        <div class="user_Head">
            <div class="user_time">
                <h4 id="y" class="years"></h4>
                <h1></h1>
                <h4 id="D"></h4>
            </div>
            <div class="user_portrait">
                <a href="#" title="修改头像"></a> <img src="../before/images/people.png" />
                <div class="background_img"></div></div>

        </div>
        <ul class="Section">
            <li><a href="#" class="on"><em></em><span>我的特色馆</span></a></li>
            <li><a href="/address/getxinxi.do" target="main"><em></em><span>个人信息</span></a></li>
            <li><a href="LLupdatepass.html" target="main"><em></em><span>修改密码</span></a></li>
            <li><a href="LLOrderList.html" target="main"><em></em><span>我的订单</span></a></li>
            <li><a href="LLmess.html" target="main"><em></em><span>我的评论</span></a></li>
            <li><a href="LLUser_Address.html" target="main"><em></em><span>收货地址管理</span></a></li>
        </ul>
    </div>

</div>
</body>
</html>
<script>
    var getUser = function() {
        $.ajax({
            url : "/address/getUser.do",
            type : "POST",
            dataType : "json",
            success : function(msg) {
                console.log(msg)
                if(msg.hashMap.user==null){
                    top.location.href="HJHStageLogin.ftl";
                }
            }
        });
    }
    getUser();

</script>
